Platform Core .NET Assemblies API
CreateSelect(UserConnection,IEnumerable<EntitySchemaColumn>,Boolean,EntitySchemaColumnMap) Method
See Also  Send Feedback
Terrasoft.Core.Entities Namespace > EntitySchema Class > CreateSelect Method : CreateSelect(UserConnection,IEnumerable<EntitySchemaColumn>,Boolean,EntitySchemaColumnMap) Method
userConnection
User connection.
columns
Columns that are to be returned in query results.
takeDisplayLookupValues
Indicates that the query returns the primary display values. If the parameter is true, the query will return the primary display values.
columnMap
Map of columns for the created query.

Glossary Item Box

Creates a basic query to retrieve the specified enumerator of the schema columns, using the specified user connection, and returning a map of columns. Depending on the value of the takeDisplayLookupValues parameter, the query can return primary display values from lookups.

Syntax

 
C#
 
 

Parameters

userConnection
User connection.
columns
Columns that are to be returned in query results.
takeDisplayLookupValues
Indicates that the query returns the primary display values. If the parameter is true, the query will return the primary display values.
columnMap
Map of columns for the created query.

Return Value

Query to retrieve columns of the current schema.

Exceptions

ExceptionDescription
System.Security.SecurityExceptionInsufficient permissions to read information about the specified schema.
Terrasoft.Common.NullOrEmptyExceptionIf the list of the schemas from which values are taken is not specified for the primary display values or if one of these schemas is not initialized.

Remarks

Method is overloaded.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.